package com.example.springLearning.part13.dto;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.Size;

@Data
public class StudentDTO13 {

    @Size(max = 10)
    private String name;
    private short age;
    @Valid
    private PhoneDTO phone;

}
